home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVkkkkAAAAccccttttiiiioooonnnn((((3333xxxx)))) VVVVkkkkAAAAccccttttiiiioooonnnn((((3333xxxx))))
-
-
-
- NNNNAAAAMMMMEEEE
- VkAction - Supports encapsulation of a command that can be undone
-
- HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
- #include <Vk/VkAction.h>
-
- PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
- VkAction(const char*);
- virtual void ~VkAction(void);
-
-
- EEEExxxxeeeeccccuuuuttttiiiinnnngggg aaaaccccttttiiiioooonnnnssss
- void execute(void);
-
-
- PPPPRRRROOOOTTTTEEEECCCCTTTTEEEEDDDD PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
- SSSSppppeeeecccciiiiffffyyyyiiiinnnngggg ddddoooo////uuuunnnnddddoooo BBBBeeeehhhhaaaavvvviiiioooorrrr
- virtual void doit(void);
- virtual void undoit(void);
-
-
- PPPPrrrrooootttteeeecccctttteeeedddd DDDDaaaattttaaaa MMMMeeeemmmmbbbbeeeerrrrssss
- char* _name;
-
-
- CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This class supports applications that wish to model undoable actions
- as objects. Applications must create derived classes that define the
- exact actions to be taken. Applications use classes derived from
- VkAction by instantiating an instance of a class and calling the
- object's _e_x_e_c_u_t_e() member function. The object automatically
- registers itself with the application's undo manager, which provides
- the interface for undoing the command.
-
-
-
- DDDDEEEERRRRIIIIVVVVIIIINNNNGGGG SSSSUUUUBBBBCCCCLLLLAAAASSSSSSSSEEEESSSS
- To use this class, an application must create a derived class for
- every type of action it wishes to perform. Each derived class must
- override the virtual functions _d_o_i_t() and _u_n_d_o_i_t(). The derived
- class can add data members to maintain any state required between
- doing the command and undoing the command.
-
-
-
- FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- ddddooooiiiitttt(((())))
- virtual void doit(void);
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- VVVVkkkkAAAAccccttttiiiioooonnnn((((3333xxxx)))) VVVVkkkkAAAAccccttttiiiioooonnnn((((3333xxxx))))
-
-
-
- This virtual function should be overridden to provide the action to
- be performed by the derived class.
-
- uuuunnnnddddooooiiiitttt(((())))
- virtual void undoit(void);
-
-
- This virtual function should be overridden to reverse the effects of
- the action performed by the derived class.
-
- VVVVkkkkAAAAccccttttiiiioooonnnn(((())))
- VkAction(const char* name);
-
-
- Initialize a VkAction object.
-
- ~~~~VVVVkkkkAAAAccccttttiiiioooonnnn(((())))
- virtual void ~VkAction(void);
-
-
- Handle destruction of a VkAction object.
-
- eeeexxxxeeeeccccuuuutttteeee(((())))
- void execute(void);
-
-
- Calls derived classes' _d_o_i_t() method and arranges for the undo
- action to be registered with the undo manager.
-
- DDDDAAAATTTTAAAA MMMMEEEEMMMMBBBBEEEERRRR DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
- ____nnnnaaaammmmeeee
- char* _name;
-
-
- Every action should have a name, which is used to identify the
- action in the undo manager.
-
- CCCCLLLLAAAASSSSSSSSEEEESSSS UUUUSSSSEEEEDDDD BBBBYYYY TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
- VkMenuUndoManager
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- VkMenuUndoManager
- _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
- _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
- _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-